package com.video.result;

public enum AppHttpCodeEnum {
    // 成功
    SUCCESS(200, "操作成功"),
    ERROR(201, "操作失败"),

    VLOG_NOT_EXIST(301, "视频不存在"),
    COMMENT_NOT_NULL(302, "评论不能为空"),
    COMMENT_NOT_EXIST(303, "评论不存在"),
    MOBILE_NOT_NULL(304, "手机号不能为空"),
    NO_POWER_MODIFY_VLOG(305, "无权限修改该视频"),
    MOBILE_ERROR(306, "请输入正确的手机号"),
    USER_NOT_LOGIN(307, "请先登录"),

    USER_NOT_EXIST(401, "用户不存在"),
    USER_ALREADY_EXIST(402, "用户已存在"),
    TAG_NOT_EXIST(403, "标签不存在"),

    SYSTEM_ERROR(501, "系统错误"),
    LOGIN_SUCCESS(200, "登陆成功"),
    ;



    int code;
    String msg;

    AppHttpCodeEnum(int code, String errorMessage) {
        this.code = code;
        this.msg = errorMessage;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
    }
